<?php
require_once("../config.php"); 
require_once("../model/DB.php");
require_once("../model/Class.php");
$classes = Classes::getClass($_POST['grade']);

print json_encode($classes);
?>